package br.com.escolaespacocrianca.fineec.controller;

import br.com.caelum.vraptor.Post;
import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;
import br.com.escolaespacocrianca.fineec.component.Resources;

@Resource
public class SharedController {
	
	private final Result result;
	public SharedController(Result result,Resources resources) {
		this.result = result;
	}

	@Post
	public void index(String entityName, String descriptionName) {
		result.include("entityName",entityName);
		result.include("descriptionName",descriptionName);
		
	}
	
	@Post
	public void queryIndex(String methodName, String descriptionName) {
		result.include("link",methodName);
		result.include("descriptionName",descriptionName);
		
	}
	
}
